home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13279 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
  2. From: grantp@usa.pipeline.com(Pete Grant)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Does Borland share these MSVC++ problems?
  5. Date: 24 Mar 1996 16:48:44 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4j3udc$m6t@news1.h1.usa.pipeline.com>
  8. References: <4j2m6q$lg6@cnn.Princeton.EDU>
  9. NNTP-Posting-Host: 38.8.120.9
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete Grant)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 24, 1996 05:22:34 in article <Does Borland share these MSVC++
  16. problems?>, 'john@meenie.Princeton.EDU (John Saponara)' wrote: 
  17.  
  18.  
  19. >Folks, 
  20. >As I was unable to wait long enough on the phone for Borland pre-sale 
  21. >tech support (cannot afford to be on hold that long and that far away), 
  22. >please let me know if Borland differs from MS Visual C++ in any of the 
  23. >following traits (all of which have frustrated me regarding VC++).  
  24. >I have come to expect these features from using GNU C++, but must 
  25. >diagnose a particular problem using a C++ compiler for PCs. 
  26. >1. Do index variables declared in the for statement persist after the
  27. loop? 
  28. Yes, but this is subject to change in future releases as the new 
  29. ANSI/ISO standard is implemented by the compiler developers. 
  30. I have not yet received BC++5.0 (I got the books but no compiler) so 
  31. I can not say how index vars are handled in that version.   
  32.  
  33. >2. Is there no `bool' builtin type? 
  34. As of MSVC++ 4.1, and BC++ 4.52, no.  Again, subject to change -- 
  35. in fact, reading BC++ 5.0 literature, bool is implemented 
  36. in that version. 
  37.  
  38. >3. Must I return a value from a non-void function 
  39. >even in a branch that calls exit(1)? 
  40. No, not in BC++4.52, at least -- but you'll get a warning to  
  41. that effect.  
  42.  
  43. (Question 4:  I don't know off the top of my head). 
  44.  
  45. > 5. Are the POSIX functions (particularly sleep, link, unlink)  
  46. >unavailable? 
  47. They are available in BC++4.52.  They also are in MSVC++ with minor  
  48. mods: there's a Sleep Win32 API function; link and unlink are _link 
  49. and _unlink. 
  50.  
  51. >6. Is there no iostream extension that takes the same vararg list as
  52. printf()? 
  53. >In g++ you can write, for example: cout.form( "%s\n", charArray ); 
  54. No, there's not.  IMHO, this extension isn't even desirable as it's 
  55. against the iostream philosophy; i.e., type safety.  Seems to me that 
  56. if one wants to emulate printf, then one might just as well use printf. 
  57. ios::sync_with_stdio takes care of the only problem.  Of course, 
  58. linking two libraries is a drawback.  Just my $0.02. 
  59.  
  60.  
  61. -- 
  62. Pete Grant 
  63. Kalevi, Inc. 
  64. Software Engineering & development
  65.